package com.aorise.mapper.approve;

import com.aorise.model.approve.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 审批信息mybatis接口类
* @Date:Created in 2019-06-17
* @Modified By:
*/
@Mapper
@Component(value = "approveMapper")
public interface ApproveMapper {
    /**
     * @Author:cat
     * @Description 查询审批信息总条数
     * @params: map 查询条件Map
     * @Date:2019-06-17
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getAllApproveListTotalByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 分页查询审批信息
     * @params: map 查询条件Map
     * @Date:2019-06-17
     * @Return: List<ApproveModel> 审批信息集合
     * @Modified By:
     */
    List<ApproveModel> getAllApproveListByPage(Map<String, Object> map) throws DataAccessException;

}